package cxy.entity;

import java.time.LocalDate;
import java.util.Arrays;

public class Student {
    private Integer sid;
    private String sname;
    private LocalDate birthday;
    private  byte[] photo;
    private Integer isdelete;

    public Student(Integer sid, String sname, LocalDate birthday, byte[] photo, Integer isdelete) {
        this.sid = sid;
        this.sname = sname;
        this.birthday = birthday;
        this.photo = photo;
        this.isdelete = isdelete;
    }

    public Student(String sname, LocalDate birthday, byte[] photo, Integer isdelete) {
        this.sname = sname;
        this.birthday = birthday;
        this.photo = photo;
        this.isdelete = isdelete;
    }

    public Student() {
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public byte[] getPhoto() {
        return photo;
    }

    public void setPhoto(byte[] photo) {
        this.photo = photo;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", birthday=" + birthday +
                ", photo=" + Arrays.toString(photo) +
                ", isdelete=" + isdelete +
                '}';
    }
}
